<%@ page import="foo.bar.blog.web.action.general.RenderEngineCommandHelpActionBean" %>
<%@ page import="foo.bar.radeox.api.engine.RenderEngine" %>
<%@include file="/WEB-INF/pages/commons/commons.jsp" %>

<c:set var="renderEngine" value="${actionBean.renderEngine}" />
<%
    RenderEngine renderEngine = (RenderEngine) pageContext.getAttribute("renderEngine");
%>

<html>
<head>
    <link href='<c:url value="${_blogThemePath}/styles/radeox.css"/>' rel="stylesheet" type="text/css" />
</head>
<body>

<script type="text/javascript">
    function createLinkDoesNotWorkItsAnExample() {
        alert('Create Page Link will not work cause this serves as an example only :)');
    };

    function linkToPageDoesNotWorkItsAnExample() {
        alert("Link to Page will not work because this serves as an example only :)");
    }
</script>


<div class="radeox">
<table width="100%" border="1px">
<thead>
    <tr>
        <th>Description</th>
        <th>Wiki Syntax</th>
        <th>Sample</th>
    </tr>
</thead>
<tbody>
<!--
   ================================================
    - foo.bar.radeox.macro.TableMacro
   ================================================
-->
<tr>
    <td>Table</td>
    <td><pre>
{table}
Name|Position|Age
Jim|Accountant|29
Jack|Programmer|30
Andrew|Manager|35
{table}
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
        "{table} \r\n"+
        "Name|Position|Age\r\n"+
        "Jim|Accountant|29\r\n"+
        "Jack|Programmer|30\r\n"+
        "Andrew|Manager|35\r\n"+
        "{table}\r\n")%>' /></td>
</tr>

<!--
 =====================================================
    - foo.bar.radeox.macro.CodeMacro
 =====================================================
-->
<tr>
    <td>Code Snippets</td>
    <td><pre>
Following are some Java code snippets
{code:java}
public class HelloWorld {
  public static void main(String[] args) throws Exception {
    System.out.println("Hello World !");
  }
}
{code}
Following are some Xml code snippets
{code:xml}
&lt;employees&gt;
    &lt;employee&gt;
        &lt;name&gt;Toby&lt;/name&gt;
        &lt;position&gt;Accountant&lt;/position&gt;
        &lt;age&gt;30&lt;/age&gt;
    &lt;/employee&gt;
    &lt;employee&gt;
        &lt;name&gt;Sophia&lt;/name&gt;
        &lt;position&gt;Programmer&lt;/position&gt;
        &lt;age&gt;29&lt;/age&gt;
    &lt;/employee&gt;
&lt;/employees&gt;
{code}
Following are some SQL code snippets
{code:sql}
SELECT * FROM TBL_EMPLOYEE AS employee
INNER JOIN TBL_EMPLOYEE AS subordinates
ON subordinates.BOSS_ID = employee.ID
{code}
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
            "Following are some Java code snippets \r\n"+
            "{code:java} \r\n"+
            "public class HelloWorld { \r\n"+
            "  public static void main(String[] args) throws Exception { \r\n"+
            "    System.out.println(\\"Hello World ! \\"); \r\n"+
            "  } \r\n"+
            "} \r\n"+
            "{code} \r\n"+
            "Following are some Xml code snippets \r\n"+
            "{code:xml} \r\n"+
            "<employees> \r\n"+
            "    <employee> \r\n"+
            "        <name>Toby</name> \r\n"+
            "        <position>Accountant</position> \r\n"+
            "        <age>30</age> \r\n"+
            "    </employee> \r\n"+
            "    <employee> \r\n"+
            "        <name>Sophia</name> \r\n"+
            "        <position>Programmer</position> \r\n"+
            "        <age>29</age> \r\n"+
            "    </employee> \r\n"+
            "</employees> \r\n"+
            "{code} \r\n"+
            "Following are some SQL code snippets \r\n"+
            "{code:sql} \r\n"+
            "SELECT * FROM TBL_EMPLOYEE AS employee \r\n"+
            "INNER JOIN TBL_EMPLOYEE AS subordinates \r\n"+
            "ON subordinates.BOSS_ID = employee.ID \r\n"+
            "{code} \r\n"+
            "")%>' /></td>
</tr>


<!--
   ====================================================
    - foo.bar.radeox.macro.MailToMacro
   ====================================================
-->
<tr>
    <td>Mail</td>
    <td><pre>
Mail it to {mailto:tmjee1@gmail.com}. Thanks !!!
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render("Mail it to {mailto:tmjee1@gmail.com}. Thanks !!!")%>' /></td>
</tr>

<!--
   ==============================
    - foo.bar.radeox.filter.HeadingFilter
    - foo.bar.radeox.filter.HeadingCreoleFilter
   ==============================
-->
    <tr>
        <td>Heading</td>
        <td>
            <pre>
1 Heading 1
1.1 Heading 2
1.1.1 Heading 3
1.1.1.1 Heading 4

or

= Another Heading 1
== Another Heading 2
=== Another Heading 3
==== Another Heading 4
            </pre>
        </td>
        <td>
            <c_rt:out escapeXml="false" value='<%=renderEngine.render(
                        " 1 Heading 1 \r\n"+
                        " 1.1 Heading 2 \r\n"+
                        " 1.1.1 Heading 3\r\n" +
                        "\r\n" +
                        "or \r\n" +
                        "\r\n" +
                        " = Heading 1 \r\n"+
                        " == Heading 2 \r\n"+
                        " === Heading 3\r\n"+
                        "\r\n"+
                        "\r\n"+
                        "\r\n"+
                        "\r\n")%>'/>
        </td>
    </tr>
    

<!--
  ======================================
    - foo.bar.radeox.filter.LineFilter
  ======================================
-->
     <tr>
        <td>Line</td>
        <td>
            <pre>
Something
----
Something else
            </pre>
        </td>
        <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
                "Something \r\n"+
                "---- \r\n"+
                "Somethign else")%>'/></td>
    </tr>


<!--
  ==============================================
    - foo.bar.radeox.filter.ListFilter
  ==============================================
-->
    <tr>
        <td>List</td>
        <td>
            <pre>
 * Language
 ** Java
 ** Ruby
 ** C#
 * Food
 ** Fish & Chips
 ** Noodles

or

 *i Language
 **i Java
 **i Ruby
 **i C#
 *i Food
 **i Fish & Chips
 **i Noodles
            </pre>
        </td>
        <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
                " * Language \r\n" +
                " ** Java \r\n" +
                " ** Ruby \r\n" +
                " ** C# \r\n" +
                " * Food \r\n" +
                " ** Fish & Chips \r\n"+
                " ** Noodles \r\n" +
                "\r\n" +
                "or \r\n"+
                " * Language \r\n" +
                " ** Java \r\n" +
                " ** Ruby \r\n" +
                " ** C# \r\n" +
                " * Food \r\n" +
                " ** Fish & Chips \r\n"+
                " ** Noodles \r\n")%>'/></td>
    </tr>


<!--
   =========================================
    - foo.bar.radeox.filter.StrikeThroughFilter
   =========================================
-->
    <tr>
        <td>Strike Through</td>
        <td>
            <pre>
--Strike Through--
            </pre>
        </td>
        <td><c_rt:out escapeXml="false" value='<%=renderEngine.render("--Strike Through--")%>'/></td>
    </tr>


<!--
  ==========================================
    - foo.bar.radeox.filter.NewlineFilter
  ==========================================
-->
    <tr>
        <td>New Line</td>
        <td>
            <pre>
Line 1
\\\\
Line 2 in a new line
\\\\
Line 3 in a new line too
            </pre>
        </td>
        <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
                "Line 1 \r\n"+
                " \\\\\\\\ \r\n"+
                "Line 2 in a new line \r\n"+
                " \\\\\\\\ \r\n"+
                "Line 3 in a new line too")%>'/></td>
    </tr>


<!--
 ===============================================
    - foo.bar.radeox.filter.ParagraphFilter
 ===============================================
-->
    <tr>
        <td>Paragraph</td>
        <td><pre>
Line
  [space/tab][enter]
  [space/tab][enter]
In a paragraph
  [space/tab][enter]
  [space/tab][enter]
In another paragraph
        </pre></td>
        <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
                "Line \r\n"+
                " \r\n"+
                " \r\n"+
                "In a paragraph\r\n"+
                " \r\n"+
                " \r\n"+
                "In another paragraph")%>'/></td>
    </tr>


<!--
 =================================================
    - foo.bar.radeox.filter.BoldFilter
 =================================================
-->
  <tr>
      <td>Bold</td>
      <td><pre>
 **in bold** not in bold
      </pre></td>
      <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(" **in bold** not in bold")%>'/></td>
  </tr>

<!--
  ==============================================
    - foo.bar.radeox.filter.UnderlineFilter
  ==============================================
-->
 <tr>
     <td>Underline</td>
     <td><pre>
 __Underlined__ not underlined
     </pre></td>
     <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(" __Underlined__ not underlined")%>'/></td>
 </tr>


<!--
 ============================================
    - foo.bar.radeox.filter.ItalicFilter
 ============================================
-->
<tr>
    <td>Italics</td>
    <td><pre>
 ~~In italics~~ not in italics
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(" ~~In italics~~ not in italics")%>'/></td>
</tr>


<!--
 ======================================================
   - foo.bar.radeox.filter.KeyFilter
 ======================================================
-->
<tr>
    <td>Key</td>
    <td><pre>
Ctrl-A does this Alt-F4 does this and Shift-B does this
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render("Ctrl-A does this Alt-F4 does this and Shift-B does this")%>'/></td>
</tr>


<!--
 ==========================================================
  - foo.bar.radeox.filter.UrlFilter
  - foo.bar.radeox.macro.LinkMacro
 ==========================================================
-->
<tr>
    <td>Url</td>
    <td><pre>
Hello, http://code.google.com/p/foobarwiki is
the website for this wiki
\\\\
Another link {link:www.google.com}
\\\\
Click {link:here|www.google.com} to get to Google
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
    "Hello, http://code.google.com/p/foobarwiki is the website for this wik \r\n"+
    "\\\\\\\\ \r\n"+
    "Another link {link:www.google.com} \r\n"+
    "\\\\\\\\ \r\n"+
    "Click {link:here|www.google.com} to get to Google ")%>'/></td>
</tr>


<!--
  =============================================================
    - foo.bar.radeox.filter.LinkFilter
  =============================================================
-->
<%--
<tr>
    <td>Link</td>
    <td><pre>
This wiki page [MyLittlePage] exists. But
this [MyLittlePage22] doesn't, so you can see
the diference on how they are rendered.
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render("This wiki page [MyLittlePage] exists. But\n" +
"this [MyLittlePage22] doesn\'t, so you can see\n" +
"the diference on how they are rendered.")%>'/></td>
</tr>
--%>

<!--
 ===============================================
    - foo.bar.radeox.macro.QuoteMacro
 ===============================================
-->
<tr>
    <td>Quote</td>
    <td><pre>
Following is a quote :-
{quote}
Be the change you want to see in life.
{quote}
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
            "Following is a quite :- \r\n"+
            "{quote} \r\n"+
            "Be the change you want to see in life \r\n"+
            "{quote} \r\n")%>'/></td>
</tr>


<!--
   ========================================================
    - include (foo.bar.radeox.api.engine.IncludeRenderEngine)
   ========================================================
-->
<%--
<tr>
    <td>Include Page</td>
    <td><pre>
The following page will be included, where
MyLittlePage is the page name to be included :-

{!MyLittlePage}
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
            "The following page will be included, where "+
            "myPage is the page name to be included :- \r\n" +
            "\r\n"+
            "{!MyLittlePage}")%>'/></td>
</tr>
--%>

<!--
   ========================================================
    - include (foo.bar.radeox.api.engine.IncludeRenderEngine)
   ========================================================
-->
<tr>
    <td>Include Resource</td>
    <td><pre>
The following resource will be included, where
MyLittlePicture is the resource name to be included :-

{#MyLittlePicture}
    </pre></td>
    <td><c_rt:out escapeXml="false" value='<%=renderEngine.render(
            "The following resource will be included, where "+
            "MyLittlePicture is the resource name to be included :- \r\n" +
            "\r\n"+
            "{#MyLittlePicture}")%>'/></td>
</tr>



</tbody>

</table>
<p/>
<p/>
<p/>
</div>
</body>
</html>



